//
//  VCOfContact.m
//  UI14_StoryBoard
//
//  Created by Scott on 16/3/28.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "VCOfContact.h"
#include "CellOfContact.h"
#import "CellOfAnimal.h"

@interface VCOfContact () <UITableViewDataSource, UITableViewDelegate>

@end

@implementation VCOfContact


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}


#pragma mark - tableView DataSourse
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    switch (indexPath.row) {
        case 0:
        case 1:
        case 2:
        case 3:
        {
            CellOfContact *cell = [tableView dequeueReusableCellWithIdentifier:@"pool"];
    
            return cell;
        }
            break;
            
        default:
        {
            CellOfAnimal *cell = [tableView dequeueReusableCellWithIdentifier:@"pool2"];
            return cell;
        }
            
            break;
    }
    
    
    
    
    
    

    
}



#pragma mark - tableView Delegate


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
